﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace yq.ControllerBase
{
    //public class WebFormViewEngine : RazorViewEngine
    //{
    //    /// <summary>
    //    /// 切换风格
    //    /// </summary>
    //    /// <param name="views"></param>
    //    public void SetWebForm(string views)
    //    {
    //        MasterLocationFormats = new[] {
    //            "~/"+views+"/{1}/{0}.master",
    //            "~/"+views+"/Shared/{0}.master"
    //        };
    //        ViewLocationFormats = new[] {
    //            "~/"+views+"/{1}/{0}.cshtml",
    //            "~/"+views+"/{1}/{0}.cshtml",
    //            "~/"+views+"/Shared/{0}.cshtml",
    //            "~/"+views+"/Shared/{0}.cshtml"
    //        };
    //        PartialViewLocationFormats = ViewLocationFormats;
    //        ViewEngines.Engines.Clear();
    //        ViewEngines.Engines.Add(new WebFormViewEngine());
    //    }
    //} 
}